<div id="add_payment<?php echo $contract['contract_id']; ?>" class="zoom-anim-dialog relative popup_test_style">
 <form name="submit-rec" class="reciept-1" method="POST" action="">					
          <div class="">
                        <h1>اضافة سند صرف جديد</h1>
                        <hr />
                       
                        <div class="bookings-edit-container">
                        <div class="bookings-edit-row">
                        <table class="edit-bookings-table">
                                <tr>
                                    <td>التاريخ</td>
                                    <td>:&nbsp;<input readonly required type="text" class="small-input date_miladi date-miladi-fixed" name="date" id="date-miladi-<?php echo $contract['contract_id'];?>" placeholder="" /></td>
                                    <td>رقم السند</td>
                                    <td>:&nbsp;######</td>
                                </tr>
                                <tr>
                                    <td>الموافق</td>
                                    <td class="date_hijri">:&nbsp;</td>
                                    <td><input type="hidden" name="contract_id" class="contract_id small-input " value="<?php echo $contract['contract_id'];?>"/>
                                    </td>
                                    <td><input type="hidden" name="hijri-date" id="date_hijri" value="1"/> </td>
                                    <input type="hidden" name="checkout" id="" value="<?php if(isset($is_checkout)) { echo $is_checkout; }?>"/> 
                                    <input type="hidden" name="current_mo" id="current_mo" value="<?php echo $contract['insurance']; ?>"/> 
                                </tr>
                                <tr>
                                    <td>النوع</td>
                                      <td>:&nbsp;
                                        <select name="payment_type" class="payment_type">
                                          <?php if($type==1) {?>
                                          <option value="0">سند صرف</option>
                                          <option selected = 'selected' value="1">بدل تأمين</option>
                                          <?php }else{ ?>
                                          <option selected = 'selected' value="0">سند صرف</option>
                                          <option  value="1">بدل تأمين</option>
                                          <?php } ?>
                                        </select>
                                      </td>
                                  </tr>
                                <tr>
                                    <td>أمين الصندوق</td>
                                    <td>:&nbsp;<?php echo $_SESSION['login_user'];?><input type="hidden" required class="small-input" name="amen_sondoq" id="" placeholder=""  value="<?php echo $_SESSION['login_user'];?>"/></td>
                                </tr>
                                <tr>
                                	<td>المستلم</td>
                                    <td>:&nbsp;<?php echo $contract['name'];?><input type="hidden" class="auto-input" name="recipient" value="<?php echo $contract['name'];?>" /></td>
                                </tr>
                                <tr>
                                	<td>المبلغ </td>
                                    <td>:&nbsp;<input type="text" class="auto-input amout-paid-1" name="amount" value="<?php echo $amount;?>" /></td>
                                    <td>طريقة الدفع</td>
                                    <td>:&nbsp;
                                    <select required class="small-select" name="type">
                                      <?php
                                          $i = 0;
                                          foreach($payment_method as $method)
                                          {
                                            echo "<option value='{$i}'>{$method}</option>";
                                            $i++;
                                          }
                                        ?>
                                    </select>
                                    </td>
                                </tr>
                                <tr>
                                	<td>من أجل</td>
                                  <?php 
                                  
                                  if($type!=1) 
                                    $reason = "بدل إيجار وحدة رقم ". $contract['apartment_name'];
                                  else
                                    $reason = "بدل تأمين على الوحدة رقم ". $contract['apartment_name'];
                                  ?>
                                    <td>:&nbsp;<input required type="text" class="auto-input reason-1" name="reason" value="<?php echo $reason; ?>" /></td>
                                </tr>
                                <tr>
                                	<td>ملاحظات </td>
                                    <td><p class="text-right"><textarea id="" class="" style="" tabindex="19" cols="20" rows="2" name="notes"></textarea></p></td>
                                </tr>
                                <input type="hidden" class="apartment_name" value="<?php echo $contract['apartment_name']; ?>" />
                         </table>       
						
                        </div>
                        <div class="save-botton-4">إضافة</div>
                        <div class="mfp-close close-button" >x</div>
						<!--<input type="submit" value="goo"/> -->
                        </div>
                      </div> 
					   </form>
             </div>